﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using FwProject.Comm.ExcelUtil;

namespace FwProject.Distribution.Dto
{
    [DisplayName(displayName: "配送差件汇总")]
    public class DistributionDiffView
    {
        /// <summary>
        /// 线路名称
        /// </summary>
        public string LineName { get; set; }
        /// <summary>
        /// 司机编号
        /// </summary>
        public long DriverId { get; set; }
        /// <summary>
        /// 配送日期
        /// </summary>
        [DisplayName(displayName: "配送日期")]
        [ExcelDateMember]
        public DateTime DistributionDate { get; set; }
        /// <summary>
        /// 回收总数
        /// </summary>
        [DisplayName(displayName: "回收总数")]
        [ExcelDateMember(IsSum = true)]
        public int Recoverycount { get; set; }
        /// <summary>
        /// 配送总数
        /// </summary>
        [DisplayName(displayName: "配送总数")]
        [ExcelDateMember(IsSum = true)]
        public int Distributioncount { get; set; }
        /// <summary>
        /// 差件
        /// </summary>
        [DisplayName(displayName: "差件")]
        [ExcelDateMember(IsSum = true)]
        public int Diff { get { return Recoverycount - Distributioncount; } }
    }
}
